﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopWlbMessage")]
    public class WlbMessage : BaseObject
    {
        //begin
        public WlbMessage()
        {}
        public WlbMessage(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _Id;
        public string Id
        {
            get
            {
                return _Id;
            }
            set
            {
                SetPropertyValue("Id", ref _Id, value);
            }
        }
        private string _UserId;
        public string UserId
        {
            get
            {
                return _UserId;
            }
            set
            {
                SetPropertyValue("UserId", ref _UserId, value);
            }
        }
        private string _Status;
        public string Status
        {
            get
            {
                return _Status;
            }
            set
            {
                SetPropertyValue("Status", ref _Status, value);
            }
        }
        private string _MsgCode;
        public string MsgCode
        {
            get
            {
                return _MsgCode;
            }
            set
            {
                SetPropertyValue("MsgCode", ref _MsgCode, value);
            }
        }
        private string _MsgContent;
        public string MsgContent
        {
            get
            {
                return _MsgContent;
            }
            set
            {
                SetPropertyValue("MsgContent", ref _MsgContent, value);
            }
        }
        private string _MsgDescription;
        [Size(SizeAttribute.Unlimited)]
        public string MsgDescription
        {
            get
            {
                return _MsgDescription;
            }
            set
            {
                SetPropertyValue("MsgDescription", ref _MsgDescription, value);
            }
        }
        private DateTime _GmtCreate;
        public DateTime GmtCreate
        {
            get
            {
                return _GmtCreate;
            }
            set
            {
                SetPropertyValue("GmtCreate", ref _GmtCreate, value);
            }
        }
        //end
    }
}
